# Contributor: wener <wenermail@gmail.com>
# Maintainer: wener <wenermail@gmail.com>
pkgname=fio
pkgver=3.38
pkgrel=0
pkgdesc="Flexible I/O Tester"
url="https://github.com/axboe/fio"
arch="all"
license="GPL-2.0-only"
makedepends="
	libaio-dev
	linux-headers
	numactl-dev
	zlib-dev
	"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/axboe/fio/archive/fio-$pkgver.tar.gz"
builddir="$srcdir/fio-$pkgname-$pkgver"

build() {
	./configure \
		--prefix=/usr \
		--disable-native
	make
}

check() {
	make test
}

package() {
	make mandir=/usr/share/man DESTDIR="$pkgdir" install
	install -Dm644 README.rst REPORTING-BUGS MORAL-LICENSE \
		-t "$pkgdir"/usr/share/doc/$pkgname/
}

sha512sums="
17c8a28de4eef554d0f74e76fdbb02fd26fb89b6b138a79bd419fa15e3c6aecf627510471638b91773a45b30219880174496f234ef9526a3aeede3a1fb31b06b  fio-3.38.tar.gz
"
